"""
"""
import os
# 1. 先创建浏览器驱动对象
import time

from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait

driver=webdriver.Chrome()
driver.maximize_window()
# 2 通过get方法打开页面
driver.get("http://localhost:8081/regA.html")

ele=driver.find_element(By.CSS_SELECTOR,"input[name='upfilea']")
# 必须走绝对路径
ele.send_keys(r"D:\PycharmProjects\20250805\UiAutoProject20250805\day04\1.png")



time.sleep(20)

# 4. 关闭浏览器驱动对象
driver.quit()




# pyautogui


# pywinauto
# pyautoit












